package top.itlir.edc.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import top.itlir.edc.domain.Permission;
import top.itlir.edc.domain.User;

public interface IPermissionService{

	Page<Permission> findAll(Specification<Permission> spec, Pageable pageable);

	void save(Permission model);

	List<Permission> findAll2();

	List<Permission> findPermissionByUser(User user);


}
